package com.dx.financehy.modules.touristMessages.domain;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.dx.financehy.base.CommonEntity;
import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @author: huang_jigao
 * @Title: TouristMessages
 * @ProjectName: financehy
 * @Description:
 * @date: 2024-05-16 10:40
 */
@ApiModel(description = "游客留言表")
@EqualsAndHashCode(callSuper = true)
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tourist_messages")
public class TouristMessages extends CommonEntity<TouristMessages> implements Serializable {

    @ApiModelProperty("id主键")
    private String id;

    @ApiModelProperty("主营业务二级分类id")
    private String businessTwoId;

    @ApiModelProperty("平台资源二级分类id")
    private String classTwoId;

    @ApiModelProperty("留言内容")
    private String messages;

    @ApiModelProperty("联系人")
    private String contacts;

    @ApiModelProperty("联系方式")
    private String contactInformation;

    @ApiModelProperty("留言类别（0：首页发布，1：主营业务，2：平台资源）")
    private String msgType;

    @ApiModelProperty("一级资源")
    private String oneResources;

    @ApiModelProperty("二级资源")
    private String secondResources;

    @ApiModelProperty("留言人用户名")
    private String msgUserPhone;

    @ApiModelProperty("平台资源名称")
    @TableField(exist = false)
    private String platformName;

    @ApiModelProperty("主营业务名称")
    @TableField(exist = false)
    private String businessName;

    @ApiModelProperty(value = "商家名称")
    @TableField(exist = false)
    private String merchantName;

    /**
     * 删除标志：0-正常，1-删除
     */
    @JsonIgnore
    @TableField(fill= FieldFill.INSERT)
    private Boolean deleted;
}
